<?
include("gestione/includes/config.inc.php");
include("gestione/includes/auth.lib.php");
include("gestione/includes/function.inc.php");
include("gestione/includes/product_new.class.php");
include("gestione/includes/e-commerce_new.class.php");
include("gestione/includes/news.class.php");
include("gestione/includes/content.class.php");
include("gestione/includes/keywords.class.php");
include("gestione/includes/class.xml.php");
$lang = "ita";
$cid = $_GET['cid'];
if($cid=="")
  $cid = 3;
####################### SESSION ##############################################################
$newSession = new websession();
if($newSession->order != NULL) {
	$articoli = $newSession->order->getArticoli();
	if(count($articoli)>0) {
		$tot = $newSession->order->getTotale($articoli);
		$str_tot = "&nbsp;TOTALE: &euro; ".number_format($tot,2,",",".");
	}
}
if($newSession->getStatus())  {
	$registrati = '<a href="/webproduct.php?op=logout" rel="nofollow"><img src="/images/logout.png"></a><br><br>
  <a href="/webproduct.php?op=profile" rel="nofollow"><img src="/images/profilo.png"></a>';
	$tablelogin = '';
}
################################ indicizzazione #####################################################
	 $newContent = new content(35);
	 $tagtitle = $newContent->tagtitle;
	 $tagkey = $newContent->tagkey;
	 $tagdesc = $newContent->tagdesc;
	 $metatitle = $newContent->metatitle;
	 $metakey = $newContent->metakey;
	 $metadesc = $newContent->metadesc;
	 $hidden = $newContent->hidden; 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?
include("includes/header.php");
$spot = News::doSpotNew($tiponews);
?>
<meta name="google-site-verification" content="k2heQGK4TJ-hb9gvB2axm9nlk8PkaQnpR13BLK1QW0k" />
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2773334-25']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>

<body>
<div class="contenitore">
<div id="importante">
   <div id="contenuto">
       <div style="clear:both"></div>
       <?php 
	   $doc = new DOMDocument();
	   $doc->load( 'http://www.arredo-giardino.com/getXmlBanner.php' );
	   $imgs = $doc->getElementsByTagName( "imgSlider" );
	   if ($imgs->length > 0) {
	   ?>
	   <div id="slider-wrapper">
            <div id="slider" class="nivoSlider">
               <?php
                $listimages = "";			
                foreach( $imgs as $img ) {
                    $tagssrc = $img->getElementsByTagName( "src" );
                    $tagsrc = $tagssrc->item(0)->nodeValue;
                  
                    $tagstext = $img->getElementsByTagName( "text" );
                    $tagtext = str_replace("euro","&euro;",$tagstext->item(0)->nodeValue);
                  
                    $tagshref = $img->getElementsByTagName( "href" );
                    $taghref = $tagshref->item(0)->nodeValue;
                  
                    $listimages .= (!empty($taghref)?'<a href="'.$taghref.'">':'').'<img src="'.$tagsrc.'" title="'.utf8_decode($tagtext).'">'.(!empty($taghref)?'</a>':'')."\n";
                }
                echo $listimages;
                ?>
            </div>        
       </div>
       <?php } ?>
   <?
   echo category::getIconeHome($cid)
   ?>
<div style="width:100%"><img src="/images/titoli/tit-nostri-consigli.gif" /></div>
<div style="width:100%"><?=articoli::getNovitaHome($cid,$lang);?></div>
   </div>
   <div id="left">
   <?include("includes/col-left.php")?>
   </div>
</div>
<? /*
<div id="right">
<?include("includes/col-right.php")?>
</div>
*/ ?>
<div id="header">
<?include("includes/top.php")?>
</div>
<div id="footer">
<?include("includes/footer.php")?>
</div>
</div>
</body>
</html>